<?xml version='1.0' encoding='UTF-8' ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
      xmlns:h="http://java.sun.com/jsf/html">
    <h:head>
        <title>Edit a Vehicle Type</title>
    </h:head>
    <h:body>
        <h3>Edit Vehicle Type</h3>
        <h:form>
            <h:panelGrid border="1" columns="2" cellpadding="5">
            <h:outputText value="Name"/>
            <h:inputText value ="#{vehicleType.editableVehicleType.name}"/>
            <h:outputText value="Number of Seats"/>
            <h:inputText value ="#{vehicleType.editableVehicleType.numOfSeats}"/>
        </h:panelGrid>
            <h:commandButton value="Save" action="#{vehicleType.editableVehicleType.saveVehicleType}"/>
            <br/>
            <h:commandButton value="Cancel" action="vehicleTypeList"/>
        </h:form>
    </h:body>
</html>

